{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "# /usr/bin/env python3\n",
    "import os\n",
    "import sys\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "df_train = pd.read_csv('./data/Test_DataSet.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "# df_train[df_train['label']==0].head(50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "# df_train[df_train['label']==1].head(50)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "# df_train[df_train['label']==2].head(50)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "# df_0 = df_train[df_train['label']==0]\n",
    "# df_1 = df_train[df_train['label']==1]\n",
    "# df_2 = df_train[df_train['label']==2]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "# for index,row in df_0.iterrows():\n",
    "#     print('title:\\t{}'.format(row['title']))\n",
    "#     print('content:\\t{}'.format(row['content']))\n",
    "#     print('\\n')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "# for index,row in df_1.iterrows():\n",
    "#     print('title:\\t{}'.format(row['title']))\n",
    "#     print('content:\\t{}'.format(row['content']))\n",
    "#     print('\\n')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "# for index,row in df_2.iterrows():\n",
    "#     print('title:\\t{}'.format(row['title']))\n",
    "#     print('content:\\t{}'.format(row['content']))\n",
    "#     print('\\n')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>title</th>\n",
       "      <th>content</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>01458ff5d3704ace8c4fd5b4716cbfcf</td>\n",
       "      <td>自拔亦痛哭</td>\n",
       "      <td>“没有在深夜痛哭的人，不足以谈人生”。现在凌晨1点半，失眠痛哭的自己心中一遍又一遍强调着自己...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>017e91d75654466e8d471653f84b1c79</td>\n",
       "      <td>库房出售！</td>\n",
       "      <td>东岳殿艾佛花园小区，有库房（一楼，卷闸门）一间出售，有意者请联系13369238865。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50</th>\n",
       "      <td>01a4a1b49b334171abfe6fa776e5e32a</td>\n",
       "      <td>小米米兔无人机评测</td>\n",
       "      <td>近日，小米旗下针对青少年儿童品牌——米兔发布了一款米兔遥控小飞机，相比于专业航拍无人机动辄几...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>54</th>\n",
       "      <td>01c45e1e15b94dbeaefd915bd6c8fc22</td>\n",
       "      <td>真真的，来品鉴</td>\n",
       "      <td>真真的，来品鉴</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>102</th>\n",
       "      <td>0346601976574857b137c8ab05d91cfb</td>\n",
       "      <td>奔着结婚去的?嘛</td>\n",
       "      <td>奔着结婚去的?嘛</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>138</th>\n",
       "      <td>049920d6385f4dcf9f5dadc3abad2cbb</td>\n",
       "      <td>大河客户端</td>\n",
       "      <td>【安阳高速路上一货车被查，车内人装睡！警车扩音器都\"叫不醒\"...】12月17日上午，安阳高...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>160</th>\n",
       "      <td>057d9cb08b184f41bd931597f429a599</td>\n",
       "      <td>一起游泳吗来吗</td>\n",
       "      <td>一起游泳吗来吗</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>166</th>\n",
       "      <td>05cc31ed60df4a06ab2c62079aa27550</td>\n",
       "      <td>注册不了</td>\n",
       "      <td>邵元飞 问 关于江西公务员考试的问题：省考注册报名怎么注册不了，一直显示校验码错误。\\n点击...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>186</th>\n",
       "      <td>068c1c456a50497d8224276ef30ae08f</td>\n",
       "      <td>三五知己，谈笑风生</td>\n",
       "      <td>三五知己，谈笑风生</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>204</th>\n",
       "      <td>0714a4463f344a3aa4464fb0359d4976</td>\n",
       "      <td>共享经济时代</td>\n",
       "      <td>把您认为好的，告诉身边的人，叫分享; 当你完成分享时还有报酬，叫经济!所以分享经济就是把好的...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>230</th>\n",
       "      <td>08291bdc2d8842fa9c6394e674e793c6</td>\n",
       "      <td>镇江北固楼上观长江</td>\n",
       "      <td>1 小时前 上传下载附件 (287.35 kb)1 小时前 上传下载附件 (254.13 k...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>237</th>\n",
       "      <td>0888622b4ba34c019589a1c10bd509db</td>\n",
       "      <td>独院出租</td>\n",
       "      <td>城里村交警大队对面，黛溪幼儿园西邻，交通方便，简单家具，看房电话 18006371108</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>314</th>\n",
       "      <td>0b1d87ebb01a447097a0d3034430292d</td>\n",
       "      <td>上方山，，还要门票</td>\n",
       "      <td>上方山，，还要门票</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>357</th>\n",
       "      <td>0c8ad544a9114152ac39ec86b359d263</td>\n",
       "      <td>阳畦高速公路大队</td>\n",
       "      <td>#改革开放40周年# 武威市公安局交警支队阳畦高速公路大队集体观看“庆祝改革开放40周年”电...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>378</th>\n",
       "      <td>0d2f9a0d5c3942fe8d2e69c6ce6d3e0a</td>\n",
       "      <td>南乐去衡水啦</td>\n",
       "      <td>南乐去衡水明天下午2点去衡水有需要拼车的吗，联系我15670118288</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>382</th>\n",
       "      <td>0d4c42135a90411b948b6b0eb2bf9838</td>\n",
       "      <td>手机开机慢</td>\n",
       "      <td>今年五月份买的，开始用着还行。没刷过机，也没拆过，但是近来几个月一直莫名其妙的自己关机，而...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>387</th>\n",
       "      <td>0d8c00a9081f4051a8ce7ab7cf2ff90f</td>\n",
       "      <td>来人啊</td>\n",
       "      <td>谁家有不用的小孩骑的三轮车？转让给我吧？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>388</th>\n",
       "      <td>0d8ed2417c974b5d8db365d51ef43df8</td>\n",
       "      <td>最高人民法院</td>\n",
       "      <td>#致敬40年#  #公正之路# 【张先著诉芜湖人事局取消考试资格案——我国首例因“乙肝歧视”...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>396</th>\n",
       "      <td>0de0e9f7632647c4a267e5d667efb4a4</td>\n",
       "      <td>篮球必发指数网</td>\n",
       "      <td>2018年05月01日08:06篮球必发指数网，北京拟推幼儿园综合评价指标体系进行督导评估讯...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>411</th>\n",
       "      <td>0e70e827180746a3b7f63fc1c2986468</td>\n",
       "      <td>中国气象爱好者</td>\n",
       "      <td>【雾霾深入湖广】在北风持续的吹拂下，之前滞留在江汉平原一天多的浓霾终于开始南下，武汉、长沙今...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>454</th>\n",
       "      <td>1060bd198b694785b5161d6ea7cbd394</td>\n",
       "      <td>同江女上門</td>\n",
       "      <td>?????</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>464</th>\n",
       "      <td>10a2d1ff773b4b21b4d92c0ad330857b</td>\n",
       "      <td>进来吃宵夜</td>\n",
       "      <td>进来吃宵夜</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>470</th>\n",
       "      <td>10f9b790a2274fa0aa1c85f5f472ff2f</td>\n",
       "      <td>公  示</td>\n",
       "      <td>按照省文明办关于做好“陕西好人”推荐评议活动的要求，根据省监狱管理局推荐，我厅拟推荐汉江监狱...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>503</th>\n",
       "      <td>1227d2dce1624384a608fe90d9abe64a</td>\n",
       "      <td>高仿名牌包批发</td>\n",
       "      <td>高仿名牌包批发【ｖ?信：１６６_７０３８_００７８】【包?包、皮? 带、男? 装、女?装、男...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>539</th>\n",
       "      <td>130f82c1bad04cafbe6ea7ef8ec1a88c</td>\n",
       "      <td>靓女改运的神奇秘法</td>\n",
       "      <td>1、露出耳朵和额头的发形，比较能招来好运：　如果你真的要留浏海，最好留薄一点，因为如果你让额...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>556</th>\n",
       "      <td>138be9a3260e4f91b09c2b753b4b8cef</td>\n",
       "      <td>西安西郊劳务纠纷</td>\n",
       "      <td>人民法院审理家事案件，应当增强调解意识，拓展调解方式，创新调解机制，提高调解能力，将调解贯穿...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>573</th>\n",
       "      <td>14350e88491d4436afd030957a11ab3e</td>\n",
       "      <td>5月行情可期！</td>\n",
       "      <td>上证指数:上证指数周五震荡，从3135点开始构筑了第2个1分钟中枢，下周开盘如果下探不新低且...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>599</th>\n",
       "      <td>152492fd8e3c4df18a37757446673dd4</td>\n",
       "      <td>利辛夜宵有约的没？</td>\n",
       "      <td>利辛夜宵有约的没？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>620</th>\n",
       "      <td>15c72ad8c00143d88704d118ec641c75</td>\n",
       "      <td>分享视频</td>\n",
       "      <td>???????§?é??</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>645</th>\n",
       "      <td>16b51f8ea9ca471686c7108d12120f38</td>\n",
       "      <td>红梅小姐4</td>\n",
       "      <td>红梅小姐东莞中堂金悦x酒x店，小黄+v 132..6888...9330...6oo-9oo...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6580</th>\n",
       "      <td>e4bf236e3c944c118061d11db9ba070b</td>\n",
       "      <td>这地是停车场？？</td>\n",
       "      <td>这地是停车场？？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6614</th>\n",
       "      <td>e5c4815b58ab46a5a74efb4ba19f466d</td>\n",
       "      <td>男子精通制造假邮票</td>\n",
       "      <td>男子精通制造假邮票，在狱中偷天换日</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6687</th>\n",
       "      <td>e8a49355d15b43ec98e4ada7b7516750</td>\n",
       "      <td>微笑不露声色的张扬</td>\n",
       "      <td>中伤不是你的强项?黑夜看不见你的坚强当所有的过去都不可再来?当你默默的坐在角落抽泣?你并不是...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6730</th>\n",
       "      <td>e9f8438280424a0faf1099bae74648e6</td>\n",
       "      <td>感谢信</td>\n",
       "      <td>感谢政府的努力，塑料停了，石头停了，红砖停了，沙也停了，矿要停了，煤场停了，煤球厂停了，货源...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6764</th>\n",
       "      <td>eb019a00a65c40a28bcd54d81add0775</td>\n",
       "      <td>重庆皮肤病医院专科</td>\n",
       "      <td>重庆皮肤病医院专科　　重庆皮肤病医院专科【重庆迪邦皮肤病医院】翁瑞全专家详细解析说到皮肤过敏...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6791</th>\n",
       "      <td>ebe6b1270f5c418c88ef124d6061bc80</td>\n",
       "      <td>#NAME?</td>\n",
       "      <td>2018年太原市职业院校技能大赛成绩揭晓，我校师生再创佳绩。在计算机辅助设计、影视后期制作、...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6801</th>\n",
       "      <td>ec72bf435abd4ef0a6171ecbb0886807</td>\n",
       "      <td>去搞吗</td>\n",
       "      <td>?????????</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6869</th>\n",
       "      <td>ee709ee2b6204267973a6761a6c0c394</td>\n",
       "      <td>天气</td>\n",
       "      <td>最近涞源冷吗？都穿什么衣服了？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6872</th>\n",
       "      <td>ee8d904a49964f8db60d8897d709dacd</td>\n",
       "      <td>警察故事：押解</td>\n",
       "      <td>2018年10月中旬，经侦大队教导员老朱接到四川省成都市警方的电话，大队一名上网逃犯在成都市...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6891</th>\n",
       "      <td>ef220d4ad0ab41a183c02c8b4bf96271</td>\n",
       "      <td>在线等龙岗修车</td>\n",
       "      <td>在线等龙岗修车</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6895</th>\n",
       "      <td>ef2cf3ba625044e5ad3356125cdb499e</td>\n",
       "      <td>泉港交友聊天呀</td>\n",
       "      <td>处几个固聊，很闲，天天聊都可以 bay③⑧⑤ 唯聊呗</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6923</th>\n",
       "      <td>f031eb0fa63b42589df0dd770942ffc0</td>\n",
       "      <td>棋牌室_新浪财经</td>\n",
       "      <td>6小时前?-?棋牌室  2018年05月01日 17:47，巴里希当时是ssc其中一个项目经...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6939</th>\n",
       "      <td>f0ca1c54fa5b4bbe97d8a905d99d1c03</td>\n",
       "      <td>一个黑龙江</td>\n",
       "      <td>骗子。目前他在北京上班，你们要小心一点，而且他骗了你钱还要骂你~</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6963</th>\n",
       "      <td>f13e2b80633541da9d37a167247040f0</td>\n",
       "      <td>怎么办电信流量卡</td>\n",
       "      <td>怎么办电信流量卡</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6975</th>\n",
       "      <td>f1a7ae168764422fade8405617913d85</td>\n",
       "      <td>阳泉市假病历怎么开</td>\n",
       "      <td>阳泉市假病历怎么开╄《威: csd 168 998》哪 里 办*病　危　通　知　书//病　假...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6979</th>\n",
       "      <td>f1de1d09b5424199a7abb0773020e00d</td>\n",
       "      <td>好听炸了??高清</td>\n",
       "      <td>好听炸了??高清</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6990</th>\n",
       "      <td>f277fd8f22ba448ba685a5aa73955775</td>\n",
       "      <td>m足球比分网</td>\n",
       "      <td>此政策被解读为证监会正按照党的十九大精神，支持“新经济”发展。共有7个点。声明本文由入驻搜狐...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7031</th>\n",
       "      <td>f40dc5c6e37a41eab4e6fa212d111015</td>\n",
       "      <td>非法集资_澳客网</td>\n",
       "      <td>澳客网介绍\\n所获奖项</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7087</th>\n",
       "      <td>f5cc99d3d11b488ab97c1b2ee80c64e3</td>\n",
       "      <td>早啊！新闻来了</td>\n",
       "      <td>要闻中共中央总书记、国家主席、中央军委主席习近平《在庆祝改革开放40周年大会上的讲话》单行本...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7128</th>\n",
       "      <td>f79e6fff36694375a38bd906ed07f382</td>\n",
       "      <td>移动垃圾光纤宽带</td>\n",
       "      <td>呼吁大家千万不要再上中国移动的当了，还60兆的光纤网速慢得像蜗牛，还每天断几次网，真心伤不起</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7147</th>\n",
       "      <td>f832bbe1ad834ff599abd3ca8ef3e190</td>\n",
       "      <td>深圳商报</td>\n",
       "      <td>#2019春节# 【南方朋友有福了！半人马座阿尔法流星雨初四初五可见】春节长假，天宇将上演一...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7151</th>\n",
       "      <td>f8474003b2e444e89a1541cfa85e91fc</td>\n",
       "      <td>来，有人邀请你喝茶</td>\n",
       "      <td>谁还没有一份祖传秘方，谁还没有你想要的那种.....（不是这种）哦，不是祖传秘方，是祖传普洱...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7156</th>\n",
       "      <td>f89b5423d5364187aea019df4a294076</td>\n",
       "      <td>微信男科医托诈骗案</td>\n",
       "      <td>微信男科医托诈骗案设施或是单到要提-。即时沟通的?(还有其他要吗?)聊天功能已在万豪酒店推出...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7171</th>\n",
       "      <td>f90cf3a6f07b418b85189eb4f5a3dee0</td>\n",
       "      <td>分享：小米ktv</td>\n",
       "      <td>小米ktv不发工资，丧尽天良，希望关注，已经三个月了  小米ktv来自：tieba.baid...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7175</th>\n",
       "      <td>f93228a887124df3b343515271e98f0e</td>\n",
       "      <td>寻找以下车牌主人</td>\n",
       "      <td>苏BX819U。苏B3E630。 苏BD0928。               京PB213...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7184</th>\n",
       "      <td>f986d65a9baf48d99b94f784b6fa46a7</td>\n",
       "      <td>简历推荐</td>\n",
       "      <td>简 历姓 名： 贺红梅性 别： 女出生日期： 1991年07月14日参加工作时间：2014年...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7229</th>\n",
       "      <td>fb66f860a2fe4fabb87d9eb216868869</td>\n",
       "      <td>老人过马路被撞飞</td>\n",
       "      <td>肇事司机你在哪? 还有刘翰青，要为父亲讨回公道。撞了人就跑了，您觉得合适吗?刘翰青家住李沧...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7244</th>\n",
       "      <td>fbe1245ee88d4c888004cb0a492715de</td>\n",
       "      <td>一起去喝茶水了吗</td>\n",
       "      <td>一起去喝茶水了吗</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7266</th>\n",
       "      <td>fca28489470d431cb3cce7976a3e4ca8</td>\n",
       "      <td>辩护的种类</td>\n",
       "      <td>刑事辩护人的范围 责任 - 德景资讯网 最高法院解释第条:“被告人坚持自己行使辩护权，拒绝...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7273</th>\n",
       "      <td>fcd2be46dfae4fce95a07b43d4104e70</td>\n",
       "      <td>这一天不一样</td>\n",
       "      <td>（“洪洞新闻”微信公众号：htnews，洪洞连手们的精神家园）“五一”小长假当大多数人都在享...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>308 rows × 3 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                    id      title  \\\n",
       "41    01458ff5d3704ace8c4fd5b4716cbfcf      自拔亦痛哭   \n",
       "46    017e91d75654466e8d471653f84b1c79      库房出售！   \n",
       "50    01a4a1b49b334171abfe6fa776e5e32a  小米米兔无人机评测   \n",
       "54    01c45e1e15b94dbeaefd915bd6c8fc22    真真的，来品鉴   \n",
       "102   0346601976574857b137c8ab05d91cfb   奔着结婚去的?嘛   \n",
       "138   049920d6385f4dcf9f5dadc3abad2cbb      大河客户端   \n",
       "160   057d9cb08b184f41bd931597f429a599    一起游泳吗来吗   \n",
       "166   05cc31ed60df4a06ab2c62079aa27550       注册不了   \n",
       "186   068c1c456a50497d8224276ef30ae08f  三五知己，谈笑风生   \n",
       "204   0714a4463f344a3aa4464fb0359d4976     共享经济时代   \n",
       "230   08291bdc2d8842fa9c6394e674e793c6  镇江北固楼上观长江   \n",
       "237   0888622b4ba34c019589a1c10bd509db       独院出租   \n",
       "314   0b1d87ebb01a447097a0d3034430292d  上方山，，还要门票   \n",
       "357   0c8ad544a9114152ac39ec86b359d263   阳畦高速公路大队   \n",
       "378   0d2f9a0d5c3942fe8d2e69c6ce6d3e0a     南乐去衡水啦   \n",
       "382   0d4c42135a90411b948b6b0eb2bf9838      手机开机慢   \n",
       "387   0d8c00a9081f4051a8ce7ab7cf2ff90f        来人啊   \n",
       "388   0d8ed2417c974b5d8db365d51ef43df8     最高人民法院   \n",
       "396   0de0e9f7632647c4a267e5d667efb4a4    篮球必发指数网   \n",
       "411   0e70e827180746a3b7f63fc1c2986468    中国气象爱好者   \n",
       "454   1060bd198b694785b5161d6ea7cbd394      同江女上門   \n",
       "464   10a2d1ff773b4b21b4d92c0ad330857b      进来吃宵夜   \n",
       "470   10f9b790a2274fa0aa1c85f5f472ff2f       公  示   \n",
       "503   1227d2dce1624384a608fe90d9abe64a    高仿名牌包批发   \n",
       "539   130f82c1bad04cafbe6ea7ef8ec1a88c  靓女改运的神奇秘法   \n",
       "556   138be9a3260e4f91b09c2b753b4b8cef   西安西郊劳务纠纷   \n",
       "573   14350e88491d4436afd030957a11ab3e    5月行情可期！   \n",
       "599   152492fd8e3c4df18a37757446673dd4  利辛夜宵有约的没？   \n",
       "620   15c72ad8c00143d88704d118ec641c75       分享视频   \n",
       "645   16b51f8ea9ca471686c7108d12120f38      红梅小姐4   \n",
       "...                                ...        ...   \n",
       "6580  e4bf236e3c944c118061d11db9ba070b   这地是停车场？？   \n",
       "6614  e5c4815b58ab46a5a74efb4ba19f466d  男子精通制造假邮票   \n",
       "6687  e8a49355d15b43ec98e4ada7b7516750  微笑不露声色的张扬   \n",
       "6730  e9f8438280424a0faf1099bae74648e6        感谢信   \n",
       "6764  eb019a00a65c40a28bcd54d81add0775  重庆皮肤病医院专科   \n",
       "6791  ebe6b1270f5c418c88ef124d6061bc80     #NAME?   \n",
       "6801  ec72bf435abd4ef0a6171ecbb0886807        去搞吗   \n",
       "6869  ee709ee2b6204267973a6761a6c0c394         天气   \n",
       "6872  ee8d904a49964f8db60d8897d709dacd    警察故事：押解   \n",
       "6891  ef220d4ad0ab41a183c02c8b4bf96271    在线等龙岗修车   \n",
       "6895  ef2cf3ba625044e5ad3356125cdb499e    泉港交友聊天呀   \n",
       "6923  f031eb0fa63b42589df0dd770942ffc0   棋牌室_新浪财经   \n",
       "6939  f0ca1c54fa5b4bbe97d8a905d99d1c03      一个黑龙江   \n",
       "6963  f13e2b80633541da9d37a167247040f0   怎么办电信流量卡   \n",
       "6975  f1a7ae168764422fade8405617913d85  阳泉市假病历怎么开   \n",
       "6979  f1de1d09b5424199a7abb0773020e00d   好听炸了??高清   \n",
       "6990  f277fd8f22ba448ba685a5aa73955775     m足球比分网   \n",
       "7031  f40dc5c6e37a41eab4e6fa212d111015   非法集资_澳客网   \n",
       "7087  f5cc99d3d11b488ab97c1b2ee80c64e3    早啊！新闻来了   \n",
       "7128  f79e6fff36694375a38bd906ed07f382   移动垃圾光纤宽带   \n",
       "7147  f832bbe1ad834ff599abd3ca8ef3e190       深圳商报   \n",
       "7151  f8474003b2e444e89a1541cfa85e91fc  来，有人邀请你喝茶   \n",
       "7156  f89b5423d5364187aea019df4a294076  微信男科医托诈骗案   \n",
       "7171  f90cf3a6f07b418b85189eb4f5a3dee0   分享：小米ktv   \n",
       "7175  f93228a887124df3b343515271e98f0e   寻找以下车牌主人   \n",
       "7184  f986d65a9baf48d99b94f784b6fa46a7       简历推荐   \n",
       "7229  fb66f860a2fe4fabb87d9eb216868869   老人过马路被撞飞   \n",
       "7244  fbe1245ee88d4c888004cb0a492715de   一起去喝茶水了吗   \n",
       "7266  fca28489470d431cb3cce7976a3e4ca8      辩护的种类   \n",
       "7273  fcd2be46dfae4fce95a07b43d4104e70     这一天不一样   \n",
       "\n",
       "                                                content  \n",
       "41    “没有在深夜痛哭的人，不足以谈人生”。现在凌晨1点半，失眠痛哭的自己心中一遍又一遍强调着自己...  \n",
       "46         东岳殿艾佛花园小区，有库房（一楼，卷闸门）一间出售，有意者请联系13369238865。  \n",
       "50    近日，小米旗下针对青少年儿童品牌——米兔发布了一款米兔遥控小飞机，相比于专业航拍无人机动辄几...  \n",
       "54                                              真真的，来品鉴  \n",
       "102                                            奔着结婚去的?嘛  \n",
       "138   【安阳高速路上一货车被查，车内人装睡！警车扩音器都\"叫不醒\"...】12月17日上午，安阳高...  \n",
       "160                                             一起游泳吗来吗  \n",
       "166   邵元飞 问 关于江西公务员考试的问题：省考注册报名怎么注册不了，一直显示校验码错误。\\n点击...  \n",
       "186                                           三五知己，谈笑风生  \n",
       "204   把您认为好的，告诉身边的人，叫分享; 当你完成分享时还有报酬，叫经济!所以分享经济就是把好的...  \n",
       "230   1 小时前 上传下载附件 (287.35 kb)1 小时前 上传下载附件 (254.13 k...  \n",
       "237        城里村交警大队对面，黛溪幼儿园西邻，交通方便，简单家具，看房电话 18006371108  \n",
       "314                                           上方山，，还要门票  \n",
       "357   #改革开放40周年# 武威市公安局交警支队阳畦高速公路大队集体观看“庆祝改革开放40周年”电...  \n",
       "378                南乐去衡水明天下午2点去衡水有需要拼车的吗，联系我15670118288  \n",
       "382    今年五月份买的，开始用着还行。没刷过机，也没拆过，但是近来几个月一直莫名其妙的自己关机，而...  \n",
       "387                                谁家有不用的小孩骑的三轮车？转让给我吧？  \n",
       "388   #致敬40年#  #公正之路# 【张先著诉芜湖人事局取消考试资格案——我国首例因“乙肝歧视”...  \n",
       "396   2018年05月01日08:06篮球必发指数网，北京拟推幼儿园综合评价指标体系进行督导评估讯...  \n",
       "411   【雾霾深入湖广】在北风持续的吹拂下，之前滞留在江汉平原一天多的浓霾终于开始南下，武汉、长沙今...  \n",
       "454                                               ?????  \n",
       "464                                               进来吃宵夜  \n",
       "470   按照省文明办关于做好“陕西好人”推荐评议活动的要求，根据省监狱管理局推荐，我厅拟推荐汉江监狱...  \n",
       "503   高仿名牌包批发【ｖ?信：１６６_７０３８_００７８】【包?包、皮? 带、男? 装、女?装、男...  \n",
       "539   1、露出耳朵和额头的发形，比较能招来好运：　如果你真的要留浏海，最好留薄一点，因为如果你让额...  \n",
       "556   人民法院审理家事案件，应当增强调解意识，拓展调解方式，创新调解机制，提高调解能力，将调解贯穿...  \n",
       "573   上证指数:上证指数周五震荡，从3135点开始构筑了第2个1分钟中枢，下周开盘如果下探不新低且...  \n",
       "599                                           利辛夜宵有约的没？  \n",
       "620                                        ???????§?é??  \n",
       "645   红梅小姐东莞中堂金悦x酒x店，小黄+v 132..6888...9330...6oo-9oo...  \n",
       "...                                                 ...  \n",
       "6580                                           这地是停车场？？  \n",
       "6614                                  男子精通制造假邮票，在狱中偷天换日  \n",
       "6687  中伤不是你的强项?黑夜看不见你的坚强当所有的过去都不可再来?当你默默的坐在角落抽泣?你并不是...  \n",
       "6730  感谢政府的努力，塑料停了，石头停了，红砖停了，沙也停了，矿要停了，煤场停了，煤球厂停了，货源...  \n",
       "6764  重庆皮肤病医院专科　　重庆皮肤病医院专科【重庆迪邦皮肤病医院】翁瑞全专家详细解析说到皮肤过敏...  \n",
       "6791  2018年太原市职业院校技能大赛成绩揭晓，我校师生再创佳绩。在计算机辅助设计、影视后期制作、...  \n",
       "6801                                          ?????????  \n",
       "6869                                    最近涞源冷吗？都穿什么衣服了？  \n",
       "6872  2018年10月中旬，经侦大队教导员老朱接到四川省成都市警方的电话，大队一名上网逃犯在成都市...  \n",
       "6891                                            在线等龙岗修车  \n",
       "6895                         处几个固聊，很闲，天天聊都可以 bay③⑧⑤ 唯聊呗  \n",
       "6923  6小时前?-?棋牌室  2018年05月01日 17:47，巴里希当时是ssc其中一个项目经...  \n",
       "6939                   骗子。目前他在北京上班，你们要小心一点，而且他骗了你钱还要骂你~  \n",
       "6963                                           怎么办电信流量卡  \n",
       "6975  阳泉市假病历怎么开╄《威: csd 168 998》哪 里 办*病　危　通　知　书//病　假...  \n",
       "6979                                           好听炸了??高清  \n",
       "6990  此政策被解读为证监会正按照党的十九大精神，支持“新经济”发展。共有7个点。声明本文由入驻搜狐...  \n",
       "7031                                        澳客网介绍\\n所获奖项  \n",
       "7087  要闻中共中央总书记、国家主席、中央军委主席习近平《在庆祝改革开放40周年大会上的讲话》单行本...  \n",
       "7128     呼吁大家千万不要再上中国移动的当了，还60兆的光纤网速慢得像蜗牛，还每天断几次网，真心伤不起  \n",
       "7147  #2019春节# 【南方朋友有福了！半人马座阿尔法流星雨初四初五可见】春节长假，天宇将上演一...  \n",
       "7151  谁还没有一份祖传秘方，谁还没有你想要的那种.....（不是这种）哦，不是祖传秘方，是祖传普洱...  \n",
       "7156  微信男科医托诈骗案设施或是单到要提-。即时沟通的?(还有其他要吗?)聊天功能已在万豪酒店推出...  \n",
       "7171  小米ktv不发工资，丧尽天良，希望关注，已经三个月了  小米ktv来自：tieba.baid...  \n",
       "7175  苏BX819U。苏B3E630。 苏BD0928。               京PB213...  \n",
       "7184  简 历姓 名： 贺红梅性 别： 女出生日期： 1991年07月14日参加工作时间：2014年...  \n",
       "7229   肇事司机你在哪? 还有刘翰青，要为父亲讨回公道。撞了人就跑了，您觉得合适吗?刘翰青家住李沧...  \n",
       "7244                                           一起去喝茶水了吗  \n",
       "7266   刑事辩护人的范围 责任 - 德景资讯网 最高法院解释第条:“被告人坚持自己行使辩护权，拒绝...  \n",
       "7273  （“洪洞新闻”微信公众号：htnews，洪洞连手们的精神家园）“五一”小长假当大多数人都在享...  \n",
       "\n",
       "[308 rows x 3 columns]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_title_len = df_train['title'].apply(lambda x:len(x) if type(x) is not float else x)\n",
    "(df_title_len < 10).value_counts()\n",
    "df_train[df_title_len < 10]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
